
// 自动生成模板Vips
package yunxiangchuan
import (
	"time"
)

// 会员等级管理 结构体  Vips
type Vips struct {
  Id  *int `json:"id" form:"id" gorm:"primarykey;column:id;size:20;"`  //id字段
  CreatedAt  *time.Time `json:"createdAt" form:"createdAt" gorm:"column:created_at;"`  //createdAt字段
  UpdatedAt  *time.Time `json:"updatedAt" form:"updatedAt" gorm:"column:updated_at;"`  //updatedAt字段
  DeletedAt  *time.Time `json:"deletedAt" form:"deletedAt" gorm:"column:deleted_at;"`  //deletedAt字段
  Name  *string `json:"name" form:"name" gorm:"uniqueIndex;column:name;size:50;" binding:"required"`  //会员名称
  Level  *int `json:"level" form:"level" gorm:"uniqueIndex;column:level;size:19;" binding:"required"`  //会员等级
  MonthPrice  *float64 `json:"monthPrice" form:"monthPrice" gorm:"column:month_price;size:22;" binding:"required"`  //月度价格
  YearPrice  *float64 `json:"yearPrice" form:"yearPrice" gorm:"column:year_price;size:22;" binding:"required"`  //年度价格
  OriginalPrice  *float64 `json:"originalPrice" form:"originalPrice" gorm:"column:original_price;size:22;" binding:"required"`  //原价
  Discount  *float64 `json:"discount" form:"discount" gorm:"column:discount;size:22;"`  //打折价
  StorageSpace  *int `json:"storageSpace" form:"storageSpace" gorm:"column:storage_space;size:19;"`  //存储空间(MB)
  MaxAlbumCount  *int `json:"maxAlbumCount" form:"maxAlbumCount" gorm:"column:max_album_count;size:19;"`  //最大相册数量
  TimeLimit  *int `json:"timeLimit" form:"timeLimit" gorm:"column:time_limit;size:19;" binding:"required"`  //天数
  MaxPhotoCount  *int `json:"maxPhotoCount" form:"maxPhotoCount" gorm:"column:max_photo_count;size:19;"`  //相册最大照片数
  Features  *string `json:"features" form:"features" gorm:"column:features;"`  //功能特权
  Description  *string `json:"description" form:"description" gorm:"column:description;"`  //描述
  IsActive  *bool `json:"isActive" form:"isActive" gorm:"default:1;column:is_active;"`  //是否开启
  DisplayOrder  *int `json:"displayOrder" form:"displayOrder" gorm:"column:display_order;size:19;"`  //排序
}


// TableName 会员等级管理 Vips自定义表名 vips
func (Vips) TableName() string {
    return "vips"
}





